package com.yuncheng.oaApi.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuncheng.vo.CurrentUserVo;
import com.yuncheng.oaApi.vo.OaLgqsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public interface OaLgqsFlowMapper {

    Page<OaLgqsVo> flowJobPage(Page<OaLgqsVo> page,
                               @Param("onlyCurrentUser") boolean onlyCurrentUser,
                               @Param("user") CurrentUserVo user,
                               @Param("spcyFlowVo") OaLgqsVo oaLgqsVo);

    Page<OaLgqsVo> flowJkPage(Page<OaLgqsVo> page,
                              @Param("onlyCurrentUser") boolean onlyCurrentUser,
                              @Param("user") CurrentUserVo user,
                              @Param("spcyFlowVo") OaLgqsVo oaLgqsVo);

    List<OaLgqsVo> flowJkList(
            @Param("onlyCurrentUser") boolean onlyCurrentUser,
            @Param("user") CurrentUserVo user,
            @Param("spcyFlowVo") OaLgqsVo oaLgqsVo);


    Page<OaLgqsVo> selectmyyb(Page<OaLgqsVo> page, @Param("spcyFlowVo") OaLgqsVo oaLgqsVo);

    Page<OaLgqsVo> myYbFlowPage(Page<OaLgqsVo> page,
                                @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                @Param("user") CurrentUserVo user,
                                @Param("spcyFlowVo") OaLgqsVo oaLgqsVo);


}
